package com.hs.jhzd.entity;

import javax.persistence.*;
import java.sql.Date;
import java.util.Objects;

/**
 * @author guoxc
 * @date 2019/03/04
 **/
@Entity
@Table(name = "zf_cpgdxxb")
public class ZfCpgdxxbEntity {
    private String zybh;
    private String jsh;
    private String jslx;
    private String cpbh;
    private String rybh;
    private String xm;
    private String jsbh;
    private String jsmc;
    private String cjr;
    private Date cjsj;
    private Boolean scbj;
    private Date sjc;

    @Id
    @Column(name = "ZYBH")
    public String getZybh() {
        return zybh;
    }

    public void setZybh(String zybh) {
        this.zybh = zybh;
    }

    @Basic
    @Column(name = "JSH")
    public String getJsh() {
        return jsh;
    }

    public void setJsh(String jsh) {
        this.jsh = jsh;
    }

    @Basic
    @Column(name = "JSLX")
    public String getJslx() {
        return jslx;
    }

    public void setJslx(String jslx) {
        this.jslx = jslx;
    }

    @Basic
    @Column(name = "CPBH")
    public String getCpbh() {
        return cpbh;
    }

    public void setCpbh(String cpbh) {
        this.cpbh = cpbh;
    }

    @Basic
    @Column(name = "RYBH")
    public String getRybh() {
        return rybh;
    }

    public void setRybh(String rybh) {
        this.rybh = rybh;
    }

    @Basic
    @Column(name = "XM")
    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    @Basic
    @Column(name = "JSBH")
    public String getJsbh() {
        return jsbh;
    }

    public void setJsbh(String jsbh) {
        this.jsbh = jsbh;
    }

    @Basic
    @Column(name = "JSMC")
    public String getJsmc() {
        return jsmc;
    }

    public void setJsmc(String jsmc) {
        this.jsmc = jsmc;
    }

    @Basic
    @Column(name = "CJR")
    public String getCjr() {
        return cjr;
    }

    public void setCjr(String cjr) {
        this.cjr = cjr;
    }

    @Basic
    @Column(name = "CJSJ")
    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    @Basic
    @Column(name = "SCBJ")
    public Boolean getScbj() {
        return scbj;
    }

    public void setScbj(Boolean scbj) {
        this.scbj = scbj;
    }

    @Basic
    @Column(name = "SJC")
    public Date getSjc() {
        return sjc;
    }

    public void setSjc(Date sjc) {
        this.sjc = sjc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ZfCpgdxxbEntity that = (ZfCpgdxxbEntity) o;
        return Objects.equals(zybh, that.zybh) &&
                Objects.equals(jsh, that.jsh) &&
                Objects.equals(jslx, that.jslx) &&
                Objects.equals(cpbh, that.cpbh) &&
                Objects.equals(rybh, that.rybh) &&
                Objects.equals(xm, that.xm) &&
                Objects.equals(jsbh, that.jsbh) &&
                Objects.equals(jsmc, that.jsmc) &&
                Objects.equals(cjr, that.cjr) &&
                Objects.equals(cjsj, that.cjsj) &&
                Objects.equals(scbj, that.scbj) &&
                Objects.equals(sjc, that.sjc);
    }

    @Override
    public int hashCode() {
        return Objects.hash(zybh, jsh, jslx, cpbh, rybh, xm, jsbh, jsmc, cjr, cjsj, scbj, sjc);
    }
}
